home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(_root.dir == 1)
- {
- pxx = this._x;
- pyy = this._y - sss;
- }
- else if(_root.dir == 2)
- {
- pxx = this._x - sss;
- pyy = this._y;
- }
- else if(_root.dir == 3)
- {
- pxx = this._x;
- pyy = this._y + sss;
- }
- else if(_root.dir == 4)
- {
- pxx = this._x + sss;
- pyy = this._y;
- }
- if(_root.wall.hitTest(pxx,pyy,true))
- {
- _root.wallsoundbar();
- _root.reboundcounts += 1;
- _root.dir += 2;
- if(_root.dir >= 5)
- {
- _root.dir -= 4;
- }
- }
- }
-